package com.quanyan.travel.entity.vo;

import com.google.gson.Gson;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: zyq
 * Date: 2016/6/15 0015
 * Time: 10:48
 */

public class DiscountParm implements Serializable{
    private Integer activityNum;
    private BigDecimal discount;

    public Integer getActivityNum() {
        return activityNum;
    }

    public void setActivityNum(Integer activityNum) {
        this.activityNum = activityNum;
    }

    public BigDecimal getDiscount() {
        return discount;
    }

    public void setDiscount(BigDecimal discount) {
        this.discount = discount;
    }


    public static void main(String[] at){


        Gson gson = new Gson();
        DiscountParm discountParm = new DiscountParm();
        discountParm.setActivityNum(1);
        discountParm.setDiscount(new BigDecimal(0.80));

        List<DiscountParm> list = new ArrayList<>();
        list.add(discountParm);
        list.add(discountParm);
        list.add(discountParm);
        System.out.print( gson.toJson(list));
    }
}
